package com.yuanlp.shoppingmall.type;

import android.graphics.Color;
import android.view.Gravity;
import android.view.View;
import android.widget.TextView;

import com.yuanlp.shoppingmall.base.BaseFragement;

/**
 * Created by 原立鹏 on 2017/8/9.
 */

public class TypeFragement extends BaseFragement {
    private TextView textview;
    /**
     * 强制子类实现他，让在oncreateview里显示这个布局。
     *
     * @return
     */
    @Override
    public View initview() {
        textview=new TextView(context);
        textview.setTextColor(Color.RED);
        textview.setGravity(Gravity.CENTER);
        textview.setTextSize(25);
        return textview;

    }

    @Override
    public void initData() {
        super.initData();
        textview.setText("类型页面");
    }
}
